//引入mockjs
let Mock=require('mockjs')
//import Mock from 'mockjs' //import方式
let data=Mock.mock({
  //规则:值
  'list|5':[{
    'id': '@increment',
    'name': '@cname',
    'phone': /^1[0-9]{10}$/,
    'email': '@email',
    'address': '@county(true)',
    'createTime': '@date("yyyy-MM-dd")'
  }]
})
console.log(JSON.stringify(data))
